package ru.aslanov.schedule.server;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA.
 * Created: Feb 19, 2010 1:14:22 PM
 *
 * @author Sergey Aslanov
 */
public class AccessDeniedException extends Exception {
    public AccessDeniedException(HttpServletRequest request) {
        this(AccessManager.getInstance().getEmail());
    }

    public AccessDeniedException(String email) {
        super("Access is denied for user " + email);
    }
}
